<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List,java.util.Map;"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>


<div class="content">

	<div class="accordion" id="accordion2">
		<div class="accordion-group">
			<div class="accordion-heading">
				<a class="accordion-toggle" data-toggle="collapse"
					data-parent="#accordion2" href="#collapseOne"> <i
					class="icon  icon-signin"></i> 导入
				</a>
			</div>
			<div id="collapseOne" class="accordion-body in collapse"
				style="height: auto;">
				<div class="accordion-inner">
					<form class="form-horizontal" action="<%=request.getContextPath()%>/c?s=setting&o=importdata&isajax=1" method="post">
						<div class="control-group">
							<label class="control-label" for="">上传数据文件</label>
							<div class="controls">
								<input type="text" class="file-input" name="importfile" class="field"/>
								<input type="hidden" id="importfile-guid" name="guid" value=""/>
								<input type="hidden" id="importfile-ext" name="file_type" value=""/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="">选择欲导入的数据表</label>
							<div class="controls">
								<select name="table">
									<c:forEach var="t" items="${udf_tables }">
										<option value="${t.Name }">${t.Name }-${t.Comment }</option>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="control-group">
							<div class="controls">
								<button type="button" class="btn-ajax-save btn btn-info"><i class="icon icon-ok"></i> 开始导入</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
		<div class="accordion-group">
			<div class="accordion-heading">
				<a class="accordion-toggle" data-toggle="collapse"
					data-parent="#accordion2" href="#collapseThree"> <i
					class="icon  icon-signout"></i> 导出
				</a>
			</div>
			<div id="collapseThree" class="accordion-body collapse"
				style="height: 0px;">
				<div class="accordion-inner">
					<form class="form-horizontal" action="<%=request.getContextPath()%>/c?s=setting&o=exportdata&isajax=1" method="post">
						<div class="control-group">
							<label class="control-label" for="">选择欲导出的数据表</label>
							<div class="controls">
								<select name="table">
									<c:forEach var="t" items="${udf_tables }">
										<option value="${t.Name }">${t.Name }-${t.Comment }</option>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="control-group">
							<div class="controls">
								<a href="" class="btn btn-ajax-save btn-success"><i class="icon icon-download-alt"></i> 点击导出</a>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>


</div>

<!-- Modal -->
<div class="modal fade" id="uploadForm" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="myModalLabel">附件上传</h4>
			</div>
			<div class="modal-body">
				<form action="<%=request.getContextPath()%>/f?o=upload" enctype='multipart/form-data' method="POST">
					<div id="spinner-div"><i class="icon-spinner icon-spin"></i></div>
					<input type="file" name="attach_file" />
					<button class="btn btn-primary btn-lg" type="button"><i class="icon-upload"></i> 确定</button>
					<button class="btn btn-danger btn-lg" type="button"><i class="icon-remove"></i> 取消</button>
				</form>
			</div>
			
		</div> <!-- /.modal-content -->
	</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
